import {
  BrowserRouter as Router,
  Route,
  Link,
  Switch,
  Redirect,
} from 'react-router-dom'
import Login from './pages/Login'
import Layout from './pages/Layout'
function App() {
  return (
    <Router>
      <div className="App"></div>
      <Link to="/Login">登录</Link>
      <Link to="/Layout">首页</Link>

      <Switch>
        <Route path="/Login" component={Login}></Route>
        <Route path="/Layout" component={Layout}></Route>
      </Switch>
    </Router>
  )
}

export default App
